import React from 'react'
import { NavBar } from 'antd-mobile'
import { useNavigate } from 'react-router-dom'
import PayPage from './Pay/PayPage';
export default function AddPage() {
    const navigate = useNavigate();
    const back = () => {
        navigate('/home', { replace: true }); // 后退一页 相当于 goback
    }

    return (
        <div style={{ backgroundColor: '#EFF3FF', padding: '12px' }}>
            <NavBar onBack={back} />
            <PayPage />
        </div>
    )
}
